export function ArrayCopy<T>(arr: T[], length?: number) {
	const len = length || arr.length;
	const newArr = new Array<T>(len);
	for (let i = 0; i < len; i++) {
		newArr[i] = arr[i];
	}
	return newArr;
}
